@extends('home.base.base')
@section('content')

    @foreach($posts as $key => $val )
    <div class="panel panel-default">
        <div class="panel-body">
            <h3>{{ $val->title }}</h3>
            <div>
                <p><small><span class="icon-calendar-empty"></span>&nbsp;<span>{{ $val->created_at }}</span>&nbsp;&nbsp;{{--<span><span class="icon-user"></span> 作者:欧阳先生 </span>&nbsp;&nbsp;--}}{{--<span class="icon-eye-open"></span> <span>阅读：10</span>&nbsp;&nbsp;<span class="icon-comments"></span> <span>评论：10</span>--}}</small></p>
            </div>
            <p>{!! $val->content !!}</p>
            <div>
                <span class="btn btn-default"><span class="icon-hand-right"></span>&nbsp;<a href="/{{$val->id}}/post">详情</a></span>
            </div>
        </div>
    </div>
    @endforeach

    {{ $posts->links() }}

@endsection